<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@ include file="/public/pathvariable.jsp" %>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<meta http-equiv="pragma" content="no-cache"> 
		<meta http-equiv="Cache-Control" content="no-cache, must-revalidate"> 
		<meta http-equiv="expires" content="0">
		<title>编辑信息</title>
		<link rel="stylesheet" href="<%=basePath %>css/style.css">
		<link rel="stylesheet" href="<%=basePath %>css/msg.css">
		<link rel="stylesheet" href="<%=basePath %>css/ui_base.css">
		<link rel="stylesheet" href="<%=basePath %>css/f_style.css">
		<style>
			.ui_select{border:1px solid #eee;} 
			textarea{outline:none;resize:none;}
			.mtag{color:red;}
		</style>
	</head>

	<body ng-app="editApp">
<%-- 		<input type="hidden" id="headUserId" value="${userinfo.userId}" />
		<input type="hidden" id="headUserOrganId" value="${userinfo.organId}" />
		<input type="hidden" id="headChineseName" value="${userinfo.chineseName}" /> --%>
		<div class="right" ng-controller="editCtrl">
			<!--内容区-->
			<div class="msg_info_table">
				<form name="signup_form" novalidate>
				<table width="100%" border="0" cellspacing="1" cellpadding="0" class="mtable">
					<tr>
						<th scope="row" width="20">标题</th>
						<td width="340">
							<input type="text" class="ui_text disui" ng-model="vmm.title" style="width:500px">&nbsp;
							<span class="mtag">*</span>
						</td>
					</tr>
					<tr style="position: relative; z-index:4">
						<th scope="row" >渠道</th>
						<td>
                            <input type="text" class="ui_text disui" id="articleTypeId" style="width:500px" readonly>
						</td>
					</tr>
					<tr>
						<th scope="row" ng-show="authorOrWeixin" >作者</th>
						<th scope="row" ng-show="!authorOrWeixin" >微信ID</th>
						<td>
							<input type="text" class="ui_text disui" ng-model="vmm.author" style="width:500px">
						</td>
					</tr>
					<tr>
						<th scope="row" >首发媒体</th>
						<td>
							<input type="text" class="ui_text disui" ng-model="vmm.websiteName" style="width:500px">&nbsp;
							<span class="mtag">*</span>
						</td>
					</tr>			
					<tr>
						<th scope="row" >原文链接</th>
						<td>
							<input type="text" class="ui_text disui" ng-model="vmm.url" style="width:500px">&nbsp;
							<span class="mtag">*</span>&nbsp;&nbsp;
							<a ng-href="{{toSourceUrl}}"  ng-click="toSource()" class="green" target="_blank">原文跳转</a>
						</td>					
					</tr>
					<!-- <tr class="th2" style="min-height:100px;height:auto; position: relative; z-index:1">
						<th scope="row" valign="top">摘要</th>
						<td valign="top">
							<textarea id="myDigest" class="ui_text disui" ng-model="vmm.myDigest"></textarea>
						</td>
					</tr>  -->
					<tr class="th2" style="height:auto;">
						<th scope="row" valign="top">正文内容</th>
						<td >
							<textarea id="myEditor" ng-model="vmm.content"></textarea>
						</td>
					</tr>
				</table>
				</form>
				<div class="btn_bk">
					<a href="javascript:void(0)" class="ui_btn yellow release" ng-click="domAjax('release')" id="publish">修改</a>
					<a href="javascript:void(0)" class="ui_btn green" onclick="window.parent.layer.closeAll();">取消</a>
				</div>
			</div>
			<!--内容区-->
		</div>

		<script src="<%=basePath %>js/jquery.min.1.8.2.js"></script>
		<script src="<%=basePath %>js/jquery.form.js"></script>
		<script src="<%=basePath %>js/jquery.easing.1.3.js"></script>
		<script src="<%=basePath %>js/layer/layer.min.js"></script>
		<script src="<%=basePath %>js/angular.min.1.2.5.js"></script>
		<script src="<%=basePath %>js/laydate/laydate.js"></script>
		<script src="<%=basePath %>js/config.js"></script>

		<link rel="stylesheet" href="<%=basePath %>js/Jcrop/css/jquery.Jcrop.css">
		<script src="<%=basePath %>js/Jcrop/js/jquery.Jcrop.js" defer></script>
		
		<link rel="stylesheet" href="<%=basePath%>js/kindeditor-4.1.10/themes/default/default.css" />
    	<link rel="stylesheet" href="<%=basePath%>js/kindeditor-4.1.10/plugins/code/prettify.css" />
		<script charset="utf-8" src="<%=basePath%>js/kindeditor-4.1.10/kindeditor.js"></script>
    	<script charset="utf-8" src="<%=basePath%>js/kindeditor-4.1.10/lang/zh_CN.js"></script>
    	
		<script src="<%=basePath %>message/js/angular.msgEdit.js"></script>
		<script>
			var basePath = "<%=basePath%>";   
		</script>
	</body>
</html>